<div id="divider">
<?
for ($x = 1; $x < $divider["countPages"]+1; $x++)
{
    if ($divider["actualPage"] == $x)
    {
    ?><span class="actual"><?=$x?></span> <?
    }
    else
    {
    ?><span><a href="<?=$_SERVER["REQUEST_URI"]?>&amp;page=<?=$x?>"><?=$x?></a></span> <?
    }
}

?>
</div>
